<?php

namespace app\api\controller;

use app\api\model\Slides AS SlidesModel;

class Slides extends Base
{
    /**
     * 幻灯片列表
     * @return array
     * @throws \think\Exception\DbException
     */
    public function index()
    {
        $model = SlidesModel::getList();
        return self::sendResult(self::$okCode, $model);
    }
}